package com.ruoyi.system.domain.aid;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 物流运输对象 aid_transport
 * 
 * @author ruoyi
 */
public class AidTransport extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 运输ID */
    @Excel(name = "运输ID")
    private Long transportId;

    /** 运单编号 */
    @Excel(name = "运单编号")
    private String transportNo;

    /** 分配ID */
    @Excel(name = "分配ID")
    private Long allocationId;

    /** 分配标题 */
    @Excel(name = "分配标题")
    private String allocationTitle;

    /** 承运商 */
    @Excel(name = "承运商")
    private String carrier;

    /** 司机姓名 */
    @Excel(name = "司机姓名")
    private String driverName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String driverPhone;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String plateNumber;

    /** 预计到达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预计到达时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date estimatedTime;

    /** 发货地址 */
    @Excel(name = "发货地址")
    private String fromAddress;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String toAddress;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date completeTime;

    /** 状态（0待发货 1运输中 2已完成） */
    @Excel(name = "状态", readConverterExp = "0=待发货,1=运输中,2=已完成")
    private String status;

    public void setTransportId(Long transportId) {
        this.transportId = transportId;
    }

    public Long getTransportId() {
        return transportId;
    }

    public void setTransportNo(String transportNo) {
        this.transportNo = transportNo;
    }

    public String getTransportNo() {
        return transportNo;
    }

    public void setAllocationId(Long allocationId) {
        this.allocationId = allocationId;
    }

    public Long getAllocationId() {
        return allocationId;
    }

    public void setAllocationTitle(String allocationTitle) {
        this.allocationTitle = allocationTitle;
    }

    public String getAllocationTitle() {
        return allocationTitle;
    }

    public void setCarrier(String carrier) {
        this.carrier = carrier;
    }

    public String getCarrier() {
        return carrier;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverPhone(String driverPhone) {
        this.driverPhone = driverPhone;
    }

    public String getDriverPhone() {
        return driverPhone;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setEstimatedTime(Date estimatedTime) {
        this.estimatedTime = estimatedTime;
    }

    public Date getEstimatedTime() {
        return estimatedTime;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public void setToAddress(String toAddress) {
        this.toAddress = toAddress;
    }

    public String getToAddress() {
        return toAddress;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("transportId", getTransportId())
            .append("transportNo", getTransportNo())
            .append("allocationId", getAllocationId())
            .append("allocationTitle", getAllocationTitle())
            .append("carrier", getCarrier())
            .append("driverName", getDriverName())
            .append("driverPhone", getDriverPhone())
            .append("plateNumber", getPlateNumber())
            .append("estimatedTime", getEstimatedTime())
            .append("fromAddress", getFromAddress())
            .append("toAddress", getToAddress())
            .append("deliveryTime", getDeliveryTime())
            .append("completeTime", getCompleteTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
} 